<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册店铺</title>
</head>
<body>
		<s:form namespace="/control/book" action="action_shopRegister" 
			  method="post" cssStyle="text-align: left;" 
				id="register_shop_form">
			<table>
				<tr>
					<td colspan="2">
						<h2 style="color: #55AAFF;"><img src="/image/shop/order.ico" style="vertical-align: middle;"/>填写店铺信息</h2>
					</td>
				</tr>
				<tr>
					<td>店铺名称：</td>
					<td>
						<input class="input" type="text" maxlength="20" name="shop.shopName" 
							onblur="shopNameOnblur('InputName')" id="InputName"/>&nbsp;<font color="red">*</font>
						<span class="message" id="shopName">店铺的名称长度不能超过20，不允许有空字符串</span>
					</td>
				</tr>
				<tr>
					<td>店铺标识：</td>
					<td>
						<div class="logo" id="shopLogo">
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<input id="src" type="text" name="shop.logo" style="display: none">
					</td>
					<td><input class="uplogo" type="button" value="上传图标" onclick="javascript:openShopLogoWindow()"/></td>
				</tr>
				<tr>
					<td>经营类型：</td>
					<td>
						<input type="radio" checked="checked" name="workType" onclick="changeWord('co','coName')"/>个人兼职&nbsp;
						<input type="radio" name="workType" onclick="changeWord('co','coName')"/>个人全职&nbsp;
						<input type="radio" name="workType" onclick="changeWord('co','coName')" id="co"/>公司开店&nbsp;
					</td>
				</tr>
				<tr>
					<td>公司名称：</td>
					<td>
						<input class="input" type="text" maxlength="0" id="coName"
						onblur="coaddressOnblur('coName')" name="shop.coName"/>
						<span class="message" id="COADDRESS">如果是公司开店请填写公司名称！</span>
					</td>
				</tr>
				<tr id="parentAddress"style="border: 1px red solid">
					<td>联系地址：</td>
					<td>
						<!--省份-->
						<select id="province" name="province" onclick="$init()">
							<option value="-1">选择省份</option>
						</select>
						<!--城市-->
						<select name="city">
							<option value="-1" >选择城市</option>
						</select>
						<!--县、区-->
						<select name="county">
							<option value="-1" >选择县/区</option>
						</select>
						&nbsp;<font color="red">*</font>&nbsp;
						<span class="message" id="_select">请选择省、市、县/区</span>
					</td>
				</tr>
				<tr id="childAddress">
					<td><input id="_coaddress" type="hidden" name="shop.coAddress"/></td>
					<td>
						<input class="input" id="address" type="text" maxlength="80"
							style="width: 450px;" value="详细地址信息不能大于80(必填项)" 
							onfocus="clearText('address')" onblur="inputText('address')"/>&nbsp;<font color="red">*</font>
					</td>
				</tr>
				<tr>
					<td>店铺简介：</td>
					<td><span class="message" id="synopsis">详细的店铺简介有助于别人对你的了解和信任，描述不能少于50字</span></td>
				</tr>
				<tr>
					<td></td>
					<td>
						<FCK:editor instanceName="HtmlEditor"   width="590" height="300">
							 <textarea name="shop.synopsis" id="book_description" style="display: none"></textarea>
						</FCK:editor>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="text-align: center;">
						<input class="formButtom submit" type="button" onclick="registerShop()"/>
						<input class="formButtom reset" type="reset" value=""/>
					</td>
				</tr>
			</table>
		</s:form>
</body>
</html>